/// if  switch study

fn if_test(num: i32) -> bool {
    let mut a = false;
    if num > 10 {
        println!("num than 10");
        a = true;
    } else if num < 5 {
        println!("num less than 5");
        a = false;
    } else {
        println!("between 5 and 10");
        a = true;
    }
    return a;
    //    if let a = if_test(8) {
    //         bbb!("{}", a);
    //     }
}

pub fn if2() {
    let a = if false {
        "asdf" // type have to is the same
    } else {
        "yiibai"// type have to is the same
    };
    println!("value of a is: {}", a);
}